#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
void daoxu(char* pt)
{
	char* left = pt;
	char* right = pt + strlen(pt) - 1;
	while (left < right)
	{
		char tmp = *left;
		*left = *right;
		*right = tmp;
		left++;
		right--;
	}
}
int main()
{
	char pt[1000] = { 0 };
	while (scanf("%s", pt) != EOF)
	{
		daoxu(pt);
		printf("%s\n", pt);
	}
	return 0;
}

